package com.syswin.lhztest.db.repository;

import com.syswin.lhztest.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author:lhz
 * @date:2019/1/31 10:52
 */
@Mapper
public interface UserDao {

	@Select("select * from user where id = #{id}")
	List<User> get(@Param("id") String id);

	@Select("select * from user")
	List<User> getAll();
}
